package edu.gatech.stolen.tea.display.item;

import java.util.ArrayList;

import edu.gatech.stolen.tea.R;
import edu.gatech.stolen.tea.R.layout;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;


public class ItemListActivity extends ListActivity {
	
	private ArrayAdapter<String> adapter;
	private ArrayList<String> items;
	
	public void onCreate(Bundle icicle) {
		
		super.onCreate(icicle);
		
		//String[] yourItems = new String [ItemManager.getItemNames().size()];
		//items = ItemManager.getItemNames();
		//int i = 0;
				
		//for(String item: items){
			//yourItems[i++] = item;
		//}
        
		adapter = new ArrayAdapter<String>(this,
				R.layout.itempage, items);
		setListAdapter(adapter);
		
	}
	

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		
		
		
	}
}
